//
//  RGreadCell.m
//  卡片滚动
//
//  Created by dllo on 15/10/16.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "RGreadCell.h"

@implementation RGreadCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectZero];
        self.image.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.image];
    }
    return self;
}
//- (void)setImage:(UIImageView *)image
//{
//  
////}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    
    self.image.frame = CGRectMake(0, 100, self.frame.size.width, self.frame.size.width);
}
@end
